<?php

namespace app\common\enums;

class BrokerageBusinessTypeEnum extends BaseEnum
{
    // 定义常量
    public const E1 = '1';
    public const E2 = '2';
    public const E3 = '3';
    public const E4 = '4';

    // 定义描述
    public array $description = [
        self::E1 => '佣金结算',
        self::E2 => '提现',
        self::E3 => '退款',
        self::E4 => '陪跑奖励'
    ];
    public array $tradeType = [
        self::E1 => true,
        self::E2 => false,
        self::E3 => true,
        self::E4 => true
    ];

    public function getTradeType($businessType)
    {
        return $this->tradeType[$businessType] ?? '';
    }

}
